package com.guoheng.safe.sys.mapper.basicinfo;

import com.guoheng.safe.sys.model.basicinfo.BasicInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 类功能描述:　BasicInfoMapper
 *
 * @author Eternal
 * @date 2019-20-15 14:20
 */
@Mapper
public interface BasicInfoMapper {

    /**
      * 方法功能描述: 获取id=1企业基本信息
      *
      * @return BasicInfo
      */
    BasicInfo getBasicInfo();

    /**
      * 方法功能描述: 新增企业基本信息
      *
      * @param basicInfo 企业基本信息
      * @return int
      */
    int insertBasicInfo(BasicInfo basicInfo);

    /**
     * 方法功能描述: 修改企业基本信息
     *
     * @param basicInfo 企业基本信息
     * @return int
     */
    int updateBasicInfo(BasicInfo basicInfo);

    /**
     * 方法功能描述: 获取全部企业基本信息
     *
     * @return BasicInfo
     */
    List<BasicInfo> getBasicInfos();
}
